package com.qf.controller;

import com.qf.config.ServerConfig;
import com.qf.feign.ProviderFeign;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *  提供者微服务  将来是要被消费者微服务所远程调用的
 *
 * @author lixu
 */
@RestController
@RequestMapping(ServerConfig.ServerProviderCommonPath.PROVIDER)
public class ProviderController implements ProviderFeign {


    /**
     * 被调用的方法
     * @return
     */
    @Override
    public String list() {
        //..............
        return "我是提供者list";
    }

    @Override
    public String add() {
        return "我是提供者add";
    }

}
